package com.anjubao.parking.municipal.parkinglot.form;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @author anjubao
 * 泊位信息
 */
@Data
@ApiModel(value = "ParkingLotSlotForm", description = "泊位信息")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ToString
public class ParkingLotSlotForm {

    @ApiModelProperty(value = "泊位名称", required = true)
    @NotNull(message = "泊位名称不能为空")
    private String name;

    @JsonProperty("districtId")
    @ApiModelProperty(value = "停车场所在区域id", required = true)
    @NotNull(message = "停车场所在区域id不能为空")
    private Integer parkingLotDistrictId;

    @JsonProperty("provinceId")
    @ApiModelProperty(value = "停车场所在省份id", required = true)
    @NotNull(message = "停车场所在省份id不能为空")
    private Integer parkingLotProvinceId;


    @ApiModelProperty(value = "是否可预约 0:不可预约,1:可预约", required = true)
    private Integer isCanReserve;

    @JsonProperty("cityId")
    @ApiModelProperty(value = "停车场所在城市id", required = true)
    @NotNull(message = "停车场所在城市id不能为空")
    private Integer parkingLotCityId;

    @ApiModelProperty(value = "停车场编号", required = true)
    @NotNull(message = "停车场编号不能为空")
    private String parkingLotCode;

    @ApiModelProperty(value = "状态 0:禁用,1:正常,2:占用")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String note;



}
